﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;

namespace Sovigaz.DataProvider
{
    public partial class SovigazDbContext
    {
        public DbSet<RolePermission> RolePermissions { get; set; }
    }

    [Table("RolePermissions")]
    public class RolePermission
    {
        public RolePermission()
        {
            IsActived = true;
        }

        [Key, Column(Order = 0)]
        public int RoleID { get; set; }

        [Key, Column(Order = 1)]
        public string SitemapID { get; set; }

        [Key, Column(Order = 2)]
        public int PermissionID { get; set; }

        public bool IsActived { get; set; }
    }
}